<!DOCTYPE html>
<head>
    <link rel="stylesheet" type="text/css" href="/css/printkerry.css"/>
    <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
    <script src="/js/JsBarcode.all.min.js"></script>
    <script type="text/javascript" src="/js/common_index.js"></script>
</head>
<script type="text/javascript">

    var dataList = ${dataList!''};
    var dateString = "${dateString!''}";



    $(function() {

        $("#convert").click(function(){

            for(var item in dataList){//遍历json数组时，这么写p为索引，0,1

                var data = dataList[item];
                console.log(data)
                var dataSetObject = DataSetObject("convert/"+dateString,function(result){

                },{traditional : true});

                dataSetObject.call(data);

            }

        });
    });

</script>
<body>
<div class="page-title">
    <h1>批量导入</h1>
</div>
<div class="page-cont">
    <div class="block-flat">
        <!-- 查找条件 -->
        <div class="editBlock search">
            <form >
                <table>
                    <colgroup>
                        <col width="100">
                        <col>
                    </colgroup>
                    <tbody>
                    <tr>
                        <th>导入文件</th>

                    </tr>
                    </tbody>
                </table>
                <div class="searchbutton">
                    <input type="button" class="btn btn-primary" id="convert" value="开始转换">
                </div>
            </form>
        </div>
    </div>
</body>
</html>